USE master EXEC master.dbo.sp_configure 'show advanced options', 1 RECONFIGURE EXEC master.dbo.sp_configure 'optimize for ad hoc workloads', 1 RECONFIGURE WITH OVERRIDE GO sp_configure 'show advanced options', 1; GO RECONFIGURE WITH OVERRIDE; GO sp_configure 'max degree of parallelism', 4; GO RECONFIGURE WITH OVERRIDE; GO